import request from '@/utils/request'

// 查询外网导出列表
export function listExportNet(query) {
  return request({
    url: '/business/exportNet/list',
    method: 'get',
    params: query
  })
}

// 查询外网导出详细
export function getExportNet(id) {
  return request({
    url: '/business/exportNet/' + id,
    method: 'get'
  })
}

export function downLoadFile(id) {
  return request({
    url: '/business/exportNet/getByFileId/' + id,
    method: 'get'
  })
}

// 新增外网导出
export function addExportNet(data) {
  return request({
    url: '/business/exportNet',
    method: 'post',
    data: data
  })
}

// 修改外网导出
export function updateExportNet(data) {
  return request({
    url: '/business/exportNet',
    method: 'put',
    data: data
  })
}

// 删除外网导出
export function delExportNet(id) {
  return request({
    url: '/business/exportNet/' + id,
    method: 'delete'
  })
}

// 导出外网导出
export function exportExportNet(query) {
  return request({
    url: '/business/exportNet/export',
    method: 'get',
    params: query
  })
}
